package edu.sctu.zcy.month201505.day20150508.text2;

/**
 * Created by user24 on 2015/5/8.
 */
public class TextTwo {

    public int sum = 0;
    TextOne textOne = new TextOne();

    public int Cal(TextThree textThree){

        for (int i = 0; i < textOne.a; i++) {
           sum += i;
        }

        textThree.number = sum;
        return textThree.number;
    }
}
